package com.bsoft.gol.hcs.clinical.bean.response;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlElementWrapper;
import javax.xml.bind.annotation.XmlRootElement;
import java.io.Serializable;
import java.util.List;

/**
 *
 * @author lxy
 * @date 2021/6/24
 */
@XmlRootElement(name = "Data")
public class GetLabReportItemListResponse implements Serializable {

    private Integer total;

    private List<ReportItemList> reportItemLists;

    @XmlElement(name = "Total")
    public Integer getTotal() {
        return total;
    }

    public void setTotal(Integer total) {
        this.total = total;
    }

    @XmlElementWrapper(name = "ReportItemLists")
    @XmlElement(name = "ReportItemList")
    public List<ReportItemList> getReportItemLists() {
        return reportItemLists;
    }

    public void setReportItemLists(List<ReportItemList> reportItemLists) {
        this.reportItemLists = reportItemLists;
    }

    public static class ReportItemList{

        private String reportItemCode;
        private String reportItemName;
        private String reportItemAbbreviation;
        private String sampleTypeCode;
        private String sampleTypeName;
        private String inputCode;

        @XmlElement(name = "ReportItemCode")
        public String getReportItemCode() {
            return reportItemCode;
        }

        public void setReportItemCode(String reportItemCode) {
            this.reportItemCode = reportItemCode;
        }

        @XmlElement(name = "ReportItemName")
        public String getReportItemName() {
            return reportItemName;
        }

        public void setReportItemName(String reportItemName) {
            this.reportItemName = reportItemName;
        }

        @XmlElement(name = "ReportItemAbbreviation")
        public String getReportItemAbbreviation() {
            return reportItemAbbreviation;
        }

        public void setReportItemAbbreviation(String reportItemAbbreviation) {
            this.reportItemAbbreviation = reportItemAbbreviation;
        }

        @XmlElement(name = "SampleTypeCode")
        public String getSampleTypeCode() {
            return sampleTypeCode;
        }

        public void setSampleTypeCode(String sampleTypeCode) {
            this.sampleTypeCode = sampleTypeCode;
        }

        @XmlElement(name = "SampleTypeName")
        public String getSampleTypeName() {
            return sampleTypeName;
        }

        public void setSampleTypeName(String sampleTypeName) {
            this.sampleTypeName = sampleTypeName;
        }

        @XmlElement(name = "InputCode")
        public String getInputCode() {
            return inputCode;
        }

        public void setInputCode(String inputCode) {
            this.inputCode = inputCode;
        }

        @Override
        public String toString() {
            return "ReportItemList{" +
                    "reportItemCode='" + reportItemCode + '\'' +
                    ", reportItemName='" + reportItemName + '\'' +
                    ", reportItemAbbreviation='" + reportItemAbbreviation + '\'' +
                    ", sampleTypeCode='" + sampleTypeCode + '\'' +
                    ", sampleTypeName='" + sampleTypeName + '\'' +
                    ", inputCode='" + inputCode + '\'' +
                    '}';
        }
    }

    @Override
    public String toString() {
        return "GetLabReportItemListResponse{" +
                "total=" + total +
                ", reportItemLists=" + reportItemLists +
                '}';
    }
}
